<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="file_id" name="fileId" th:value="${maskFile.fileId}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">数据源名称：</label>
								<div class="col-sm-8">
									<input id="fileName" name="fileName" th:value="${maskFile.fileName}" class="form-control" type="text" placeholder="必填，限定30个字符以内">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">分类名称：</label>
								<div class="col-sm-8">
									<select name="categoryName" id="categoryName" class="form-control" th:value="${maskFile.categoryName}">
										<option value="TXT">TXT</option>
										<option value="CSV">CSV</option>
									</option> -->
								</select>
							</div>
						</div>
						<div class="form-group">	
							<label class="col-sm-3 control-label">文件路径：</label>
							<div class="col-sm-8">
								<input id="filePath" name="filePath" th:value="${maskFile.filePath}" class="form-control" type="text" placeholder="必填，输入文件路径">
							</div>
						</div>
						<div class="form-group">	
							<label class="col-sm-3 control-label">字段分隔符：</label>
							<div class="col-sm-8">
								<select id="fileDelimeter" name="fileDelimeter" th:value="${maskFile.fileDelimeter}" class="form-control" type="text">
									<option th:selected="${maskFile.fileDelimeter} eq ';' ? 'selected'" value=";">分号</option>
									<option th:selected="${maskFile.fileDelimeter} eq ',' ? 'selected'" value=",">逗号</option>
									<option th:selected="${maskFile.fileDelimeter} eq ' ' ? 'selected'" value=" ">空格</option>
								</select>
							</div>
						</div>
						<div class="form-group">	
							<label class="col-sm-3 control-label">记录分隔符：</label>
							<div class="col-sm-8">
								<select id="recordDelimeter" name="recordDelimeter" th:value="${maskFile.recordDelimeter}" class="form-control" type="text">
									<option th:selected="${maskFile.recordDelimeter} eq 'CRLF' ? 'selected'" value="CRLF">CRLF</option>
									<option th:selected="${maskFile.recordDelimeter} eq 'CR' ? 'selected'" value="CR">CR</option>
									<option th:selected="${maskFile.recordDelimeter} eq 'LF' ? 'selected'" value="LF">LF</option>
								</select>
							</div>
						</div>
						<div class="form-group">	
							<label class="col-sm-3 control-label">文本限定符：</label>
							<div class="col-sm-8">
								<select id="textQualifier" name="textQualifier" th:value="${maskFile.textQualifier}" class="form-control" type="text">
									<option th:selected="${maskFile.textQualifier} eq 'double' ? 'selected'" value="double">双引号</option>
									<option th:selected="${maskFile.textQualifier} eq 'single' ? 'selected'" value="single">单引号</option>
									<option th:selected="${maskFile.textQualifier} eq 'none' ? 'selected'" value="none">无</option>
                                </select>
							</div>
						</div>
						<div class="form-group">	
							<label class="col-sm-3 control-label">编码格式：</label>
							<div class="col-sm-8">
								<select id="fileEncode" name="fileEncode" th:value="${maskFile.fileEncode}" class="form-control" type="text">
									<option value="UTF-8" th:selected="${maskFile.fileEncode} eq 'UTF-8' ? 'selected'" >UTF-8</option>
									<option value="GBK" th:selected="${maskFile.fileEncode} eq 'GBK' ? 'selected'">GBK</option>
									<option value="GB2312" th:selected="${maskFile.fileEncode} eq 'GB2312' ? 'selected'">GB2312</option>
									<option value="ISO-8859-1" th:selected="${maskFile.fileEncode} eq 'ISO-8859-1' ? 'selected'">ISO-8859-1</option>
                                </select>
							</div>
						</div>
						<div class="form-group">	
							<label class="col-sm-3 control-label">首行行数：</label>
							<div class="col-sm-8">
								<select id="fileFirstline" name="fileFirstline" th:value="${maskFile.fileFirstline}" class="form-control" type="text">
								 <option value="0">0</option>
                                    <option value="1">1</option>
                                </select>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-3">
								<button type="submit" class="btn btn-primary">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/staticmask/maskFile/edit.js">
</script>
</body>
</html>
